module.exports = {
    devServer: {
        proxy: {
            '/bing': {
                // 需要代理的url
                target: 'https://cn.bing.com',
                changeOrigin: true,
                ws: true,
                pathRewrite: {
                    '^/bing': '/'
                }
            },
            '/hitokoto': {
                target: 'https://international.v1.hitokoto.cn',
                changeOrigin: true,
                ws: true,
                pathRewrite: {
                    '^/hitokoto': '/'
                }

            }
        }
    },

    publicPath: '/blog/'
}